<?php
namespace App\Repositories;

use App\Interfaces\OrderDistributesService;
use App\Models\OrderDistributes;

use DB;

class OrderDistributesRepository implements OrderDistributesService{

    /**
    * 根据订单id获取派单的信息， 获取得到就说明已经成功，否则没有派发过或派发失败
    *
    * param order_id:要查询的订单商品表id
    *
    * @date:2017/03/28
    * @author Leen
    */
    public function judgeByOrderId($id){

        return OrderDistributes::where('order_id', $id)->first();

    }



}